package com.zpark.controller;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: UserController
 * @Description:
 * @author: RZS
 * @date: 2024/6/13  9:01
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/t1")
    public String test01(){
        return "访问的资源路径为：/user/t1，需要的权限为USER或者ADMIN";
    }

    @DeleteMapping("/t2")
    public String test02(){
        return "访问资源路径为：/user/t2，需要的权限为ADMIN";
    }
}
